<?php
namespace Kuoqi;
/**
 * Class interpreter
 * @package Kuoqi
 * User kuoqi
 * Datetime 2022/2/28 15:36
 * Remark 基础的视图转换引擎
 */
class Interpreter{
	//static $_if,$_php,$_volist,$_novolist,$_func,$_echo;

	static public function __initialize(){}

	public function __construct(){}

	//代码解释器
	static public function execCode($htmlCode,$assign = array())
    {
		$htmlCode = Interpreter\Ifs::execCode($htmlCode,$assign);
		$htmlCode = Interpreter\Php::execCode($htmlCode,$assign);
		$htmlCode = Interpreter\Fors::execCode($htmlCode,$assign);
		$htmlCode = Interpreter\Volist::execCode($htmlCode,$assign);
		$htmlCode = Interpreter\Novolist::execCode($htmlCode,$assign);
		$htmlCode = Interpreter\Func::execCode($htmlCode,$assign);
		$htmlCode = Interpreter\Echos::execCode($htmlCode,$assign);
		return $htmlCode;
	}

}